home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / pas_all.zip / TI456.ASC < prev    next >
Text File  |  1991-09-11  |  4KB  |  199 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  456
  9.   VERSION  :  5.0
  10.        OS  :  MS-DOS, PC-DOS
  11.      DATE  :  MARCH 10, 1989                           PAGE  :  1/3
  12.  
  13.     TITLE  :  PATCH FOR INCLUDE FILE NOT FOUND BY TURBO DEBUGGER
  14.  
  15.  
  16.  
  17.  
  18.   This  handout describes the patches needed  in  order  for  Turbo
  19.   Pascal version 5.0  to  generate the correct debug information so
  20.   that  a  $Include  file in a user defined unit can  be  found  by
  21.   Turbo Debugger.  Two patches  are supplied, one for TURBO.EXE and
  22.   one for  TPC.EXE.    Both  patches  should  be made using the DOS
  23.   utility, DEBUG on copies of the original .EXE files.
  24.  
  25.   Notes:
  26.  
  27.      1.  DEBUG is not case sensitive to upper and lower case.   All
  28.          addresses  are  listed  in   upper   case   for   ease  of
  29.          readability.  All addresses are in hexadecimal.
  30.  
  31.      2.  While in DEBUG, the prompt will appear as a dash (-).
  32.  
  33.      3.  If you  do not receive the appropriate response, press "q"
  34.          followed by <Return> to quit.
  35.  
  36.                            TURBO.EXE Patch
  37.  
  38.      1.  Rename  TURBO.EXE  to  TURBO.BIN  (DEBUG  will  not  allow
  39.          modifications to be made to a .EXE file.)
  40.  
  41.               Prompt>ren turbo.exe turbo.bin <Return>
  42.  
  43.      2.  Load TURBO.BIN into DEBUG with the command:
  44.  
  45.               Prompt>debug turbo.bin <Return>
  46.  
  47.      3.  Display the registers by entering  "r"  at  DEBUG's hyphen
  48.          prompt.
  49.  
  50.               -r <Return>
  51.  
  52.          The system will respond with a display of the CPU register
  53.          values.  The following is an example:
  54.  
  55.          AX=0000  BX=0000  CX=0000  DX=0000  SP=FFEE  BP=0000 ...
  56.          DS=3C23  ES=3C23  SS=3C23  CS=3C23  IP=0100  NV UP   ...
  57.  
  58.          Note  the value of the CS register.   Add  1000h  to  this
  59.          value mentally; e.g., in the above  example  CS=3C23, then
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  456
  75.   VERSION  :  5.0
  76.        OS  :  MS-DOS, PC-DOS
  77.      DATE  :  MARCH 10, 1989                           PAGE  :  2/3
  78.  
  79.     TITLE  :  PATCH FOR INCLUDE FILE NOT FOUND BY TURBO DEBUGGER
  80.  
  81.  
  82.  
  83.  
  84.          CS  + 1000h is 4C23.  This value  will  be  referenced  by
  85.          ????.
  86.  
  87.      4.  At DEBUG's hyphen prompt, type:
  88.  
  89.               -a ????:A41E <Return>
  90.  
  91.      5.  Enter the following Assembler  code  when  the  address is
  92.          displayed:
  93.  
  94.               ????:A41E cmp si,dx <Return>
  95.  
  96.      6.  Press <Return> a second time.
  97.  
  98.      7.  Write the  modified code to disk by entering the following
  99.          at the prompt:
  100.  
  101.               -w <Return>
  102.  
  103.      8.  Quit DEBUG by entering the following:
  104.  
  105.               -q <Return>
  106.  
  107.      9.  At the DOS prompt,  rename  the .BIN file back to the .EXE
  108.          file with the following command:
  109.  
  110.               Prompt>ren turbo.bin turbo.exe <Return>
  111.  
  112.                             TPC.EXE Patch
  113.  
  114.      1.  Rename   TPC.EXE   to   TPC.BIN   (DEBUG  will  not  allow
  115.          modifications to be made to an .EXE file.)
  116.  
  117.               Prompt>ren tpc.exe tpc.bin <Return>
  118.  
  119.      2.  Load TPC.BIN into DEBUG with the command:
  120.  
  121.               Prompt>debug tpc.bin <Return>
  122.  
  123.      3.  At DEBUG's hyphen prompt, type:
  124.  
  125.               -a a5d3 <Return>
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  TURBO PASCAL                           NUMBER  :  456
  141.   VERSION  :  5.0
  142.        OS  :  MS-DOS, PC-DOS
  143.      DATE  :  MARCH 10, 1989                           PAGE  :  3/3
  144.  
  145.     TITLE  :  PATCH FOR INCLUDE FILE NOT FOUND BY TURBO DEBUGGER
  146.  
  147.  
  148.  
  149.  
  150.      4.  Enter the following Assembler  code  when  the  address is
  151.          displayed:
  152.  
  153.               XXXX:A5D3 cmp si,dx <Return>
  154.  
  155.      5.  Press <Return> a second time.
  156.  
  157.      6.  Write the  modified code to disk by entering the following
  158.          at the prompt:
  159.  
  160.               -w <Return>
  161.  
  162.      7.  Quit DEBUG by entering the following:
  163.  
  164.               -q <Return>
  165.  
  166.      8.  At the DOS prompt,  rename  the .BIN file back to the .EXE
  167.          file with the following command:
  168.  
  169.               Prompt>ren tpc.bin tpc.exe <Return>
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.